<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.pimpas.net/web/jsf" prefix="pimp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html>
	<head>
	<title>CHECKBOX TESTE</title>
	</head>
	<body>
		<h:form>
			<pimp:group title="CheckBox AJAX">
				<pimp:span noId="true">
						<h:outputLabel for="checkbox">
							<h:outputText value="Sports: "></h:outputText>
						</h:outputLabel>
						<h:selectManyCheckbox id="checkbox" value="#{mbCheckbox.selecteds}">
							<f:selectItems value="#{mbCheckbox.values}"/>
						</h:selectManyCheckbox>
				</pimp:span>
				<pimp:div noId="true">
					<h:selectBooleanCheckbox id="myCheck" value="#{mbCheckbox.booleanSelected}"></h:selectBooleanCheckbox>
				</pimp:div>
				<h:commandButton value="Send" type="button">
					<pimp:ajaxPopulate render="myCheck,checkbox" event="onClick" actionListener="#{mbCheckbox.changeValue}"></pimp:ajaxPopulate>
				</h:commandButton>
			</pimp:group>
				<pimp:ajaxPoolSize value="10"></pimp:ajaxPoolSize>
		</h:form>
	</body>
	</html>
</f:view>